package lab02.test16;

public class Test16 {
    public static void main(String[] args) {
        //加法
        Add add = new Add();
        add.a = 20;
        add.b = 40;
        System.out.println("a+b为：" + add.add());
        //减法
        Reduce reduce = new Reduce();
        reduce.a = 60;
        reduce.b = 20;
        System.out.println("a减b为：" + reduce.reduce());
        //乘法
        Multiplication multiplication = new Multiplication();
        multiplication.a = 84;
        multiplication.b = 70;
        System.out.println("a乘b为：" + multiplication.multiplication());
        //除法
        Division division = new Division();
        division.a = 56;
        division.b = 70;
        System.out.println("a除以b为：" + division.division());
    }
}
